package com.onlinelearn.chatservice.repository;

import com.onlinelearn.chatservice.model.ChatRoom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChatRoomRepository extends JpaRepository<ChatRoom, Long> {
    List<ChatRoom> findByCourseId(Long courseId);
    List<ChatRoom> findByTeacherId(Long teacherId);
} 